﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Mindfor.Web.Data;
using System.ComponentModel;

namespace Mindfor.Web.Modules.Catalog
{
	public class ProductImage : IdEntity
	{
		public virtual Product Product { get; set; }

		[DisplayName("Картинка")]
		public virtual byte[] Picture { get; set; }

		[DisplayName("Номер сортировки")]
		public virtual int Sort { get; set; }

		public ProductImage()
		{
		}

		public ProductImage(Product product, byte[] bytes)
		{
			Product = product;
			Picture = bytes;
			Sort = -1;
		}
	}
}